<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
	<!--载入公共头部-->
		<link rel="stylesheet" href="Public/Home/css/index.css" />
<link rel="stylesheet" href="Public/Home/css/icon/iconfont.css" />
<link rel="stylesheet" href="Public/Home/css/icon/iconfont.eot" />
<link rel="stylesheet" href="Public/Home/css/icon/iconfont.ttf" />
<link rel="stylesheet" href="Public/Home/css/icon/iconfont.woff" />
<link rel="stylesheet" type="text/css" href="Public/Home/css/list.css"/>
<link rel="stylesheet" href="Public/Home/css/content.css" />
<link rel="stylesheet" type="text/css" href="Public/Home/css/shopsuccess.css"/>
<script type="text/javascript" src="Public/Home/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="Public/Home/js/index.js"></script>
<script type="text/javascript" src="Public/Home/js/content.js"></script>
</head>

<body>
	<header>
		<!-- 顶部登陆注册部分 -->
		<div class="top">
			<!-- 顶部中间部分 -->
			<div class="top_middle">
				<div class="left">
					<p class="">
						送至：
					</p>
					<p class="">
						北京
					</p>
					<p>
						<i class="iconfont ic">&#xe6a6;</i>
					</p>
				<!--二级菜单-->
					<div class="top_hd">
						<ul class="erji">
							<li class="first"><a href="">北京</a></li>
							<li><a href="">上海</a></li>
							<li><a href="">天津</a></li>
							<li><a href="">重庆</a></li>
							<li><a href="">河北</a></li>
							<li><a href="">四川</a></li>
							<li><a href="">武汉</a></li>
							<li><a href="">湖南</a></li>
							<li><a href="">吉林</a></li>
							<li><a href="">黑龙江</a></li>
						</ul>
					</div>
				<!--二级菜单结束-->
				</div>
				<ul class="right">
					<li><span class="se">|</span><a href="">网站导航</a><span class="iconfont ic2">&#xe6a6;</span>
						<div class="daohang">
							3333
						</div>
						
					</li>
					
					<li><span class="se">|</span><a href="">客户服务</a><span class="iconfont ic2">&#xe6a6;</span>
					</li>
					
					<li><span class="se">|</span><a href="">关注京东</a><span class="iconfont ic2">&#xe6a6;</span>
						<div class="guan">
							<img src="Public/Home/images/bg3.png"/>
						</div>
					</li>
					
					<li><span class="se">|</span><i class="iconfont">&#x345e;</i><a href="">手机京东</a><span class="iconfont ic2">&#xe6a6;</span>
						<div class="shouji">
							<img style="width: 250px;height:196px;" src="Public/Home/images/bg2.png"/>
						</div>
						
					</li>
					<li><span class="se">|</span><a href="">企业采购</a></li>
					<li><span class="se">|</span><a href="">京东会员</a></li>
					
					<li><span class="se">|</span><a href="">我的京东</a><span class="iconfont ic2">&#xe6a6;</span>
					<!--二级菜单的-->	
						<div class="wode">
							<div class="top">
								<img src="Public/Home/images/bg1.jpg" alt="" />
								<a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=Index&a=login" class="lg">你好，请登录</a>
								<p class="xi">
									<a href="" >优惠</a>
									<span>|</span>
									<a href="">消息</a>
								</p>																	
							</div>
							<ul class="deil">
								<li><a href="">处理订单</a></li>
								<li><a href="">咨询回复</a></li>
								<li><a href="">降价商品</a></li>
								<li><a href="">返修退换货</a></li>
								<li><a href="">我的关注</a></li>
								<li><a href="">我的京豆</a></li>
								<li><a href="">我的理财</a></li>
								<li><a href="">我的白条</a></li>
							</ul>
							<div class="zuji">
								<a href="" class="zu">我的足迹</a>
								<a href="" class="more">更多>></a>
							</div>
							<img class="zutu" src="Public/Home/images/bg2.jpg" alt="" />	
							
						</div>
					<!--二级菜但结束-->
					</li>		
					<li><span class="se">|</span>
						<!--判断这里是不是已经登录-->
						
						                
						<a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=person&a=index" style="padding-right:3px">我的订单</a>
											</li>						
				</ul>
				<!--您好请登录-->
				<div class="reg">
				                
					<span class="login">欢迎 邢志龙 ！</span>
									<a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=Index&a=reg" class="check">免费注册</a>
				</div>
				
				<!--您好请登录注册结束-->				
			</div>
			<!-- 顶部中间部分结束 -->
		</div>
		<!-- 顶部结束 -->
		<!--顶部分搜索区域-->
		<div class="top_search">
			<img src="Public/Home/images/bg1.png" alt="" class="logo" />
			<form class="search_box" action="" method="post">
				<input class="text" type="text" name="" id=""  placeholder="魅族"/>
				<input class="sub" type="submit" value="搜索"/>
			</form>
			<ul class="search_tui">
				<li class="first"><a href="" class="">抢年货</a></li>
				<li><a href="" class="">开年团购</a></li>
				<li><a href="" class="">新年花卉</a></li>
			</ul>
			<!--购物车-->
			<script type="text/javascript">
				//给购物车加一个点击事件跳转到购物车页面去
				$(function(){
					$('.shop_box').click(function(){
												location.href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=shop&a=index";
											})
				})
			</script>
			<div class="shop_box">
				<p class="che"><a href="javascript:;">我的购物车</a></p>
				<span class="iconfont jian">&#xe6a7;</span>
				<div class="box_hidden">
					
				</div>
			</div>
			<!--购物车结束-->
		</div>		
		<!--顶部搜索区域结束-->	
		<!--顶部导航区域-->
				
		<div class="top_lend">
			<div class="lend_left">
				<a href="">全部商品分类</a>
			</div>
			<ul class="lend_dao">
				<li><a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=index&a=index">首页</a></li>
								<li><a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=list&a=index&gcid=3">家用电器</a></li>
								<li><a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=list&a=index&gcid=16">手机、数码、京东通信</a></li>
								<li><a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=list&a=index&gcid=27">个护化妆、清洁用品</a></li>
								<li><a href="http://localhost/shop.jd/jd-progect/index.php?m=Home&c=list&a=index&gcid=28">鞋靴、箱包、钟表、奢侈品</a></li>
							</ul>
			<img class="free" src="Public/Home/images/bg3.jpg" alt="" />
		</div>
	<!--顶部导航区域结束-->
	</header>
	<!--载入公共头部结束-->
<!--列表也部分-->
<div class="fenlei">
	<div class="allend">
		<a href="" class="quan">全部商品</a>
		<i class="iconfont">&#xe6a7;</i>
		<strong><?php echo $cate['cname']?></strong>
		<div class="liwu"><span class="li"></span><span >京东帮您礼物</span>
			<div class="hidden">
				<p>送给谁：</p>
				<ul class="song">				
					<li><a href="">朋友</a><p class="dui"></p></li>
					<li><a href="">爸爸</a><p class="dui"></p></li>
					<li><a href="">妈妈</a><p class="dui"></p></li>
					<li><a href="">丈夫</a><p class="dui"></p></li>
					<li><a href="">妻子</a><p class="dui"></p></li>
					<li><a href="">男朋友</a><p class="dui"></p></li>
				</ul>
			<p>啥时候送：</p>
				<ul class="song">				
					<li><a href="">朋友</a><p class="dui"></p></li>
					<li><a href="">爸爸</a><p class="dui"></p></li>
					<li><a href="">妈妈</a><p class="dui"></p></li>
					<li><a href="">丈夫</a><p class="dui"></p></li>
					<li><a href="">妻子</a><p class="dui"></p></li>
					<li><a href="">男朋友</a><p class="dui"></p></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="xianshi">
		<div class="wenzi">
			我们为您显示“<span style="color: red;">手机</span>”相关的商品。仍然搜索：“<a href="">shouji</a>”
		</div>
	</div>
	<!--//筛选部分开始-->
	<div class="pickup">
		<div class="pingpai">
			<div class="left">
				<strong>品牌：</strong>
			</div>
			<!--广告logo-->	
			<ul class="logo">
					<?php 
						$temp=$bid;						
					 ?>					
					<li <?php if($temp==0){?>
                style="border:2px solid red"
               <?php }?>><a style="font-size: 16px; text-align: center;line-height: 46px;" href="<?php echo U('list/index',array('bid'=>0,'gcid'=>$_GET['gcid']))?>">不限</a></li>
				
				<?php foreach ($brandData as $v){?>
					<?php 
						$temp=$bid;										
					 ?>
					<li <?php if($temp==$v['bid']){?>
                style="border:2px solid red;"
               <?php }?>><a href="<?php echo U('list/index',array('bid'=>$v['bid'],'gcid'=>$_GET['gcid']))?>">
						<?php if($v['logo']!=''){?>
                
							<img src="<?php echo $v['logo']?>" alt="" />														
						<?php }else{?>
							<span style="margin-left: 20px;line-height: 45px;"><?php echo $v['bname']?></span>
						
               <?php }?>
						</a></li>
				<?php }?>	
				
		    </ul>
		   	<!--更多和多选-->		   	
		   	<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		   	<div class="more"><a href="">更多</a><span class="iconfont">&#xe6a6;</span></div>
		</div>
		<!--颜色-->
		<!--<div class="colorb">
			<div class="s">颜色：待定</div>
			<div class="se">
				<a href="" class="a1 a"></a>
				<a href="" class="a2 a"></a>
				<a href="" class="a3 a"></a>
				
			</div>
			<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		</div>-->
		<?php $n=0; ?>
		<?php foreach ($goodsattr as $k=>$v){?>
		<div class="colorb wang">
			<div class="s"><?php echo $k?>：</div>
			<div class="se">
				<?php 
				//这里定义中间变量是为了下面用￥param不会变能重复调用
					$temp=$param;					
					$temp[$n]=0;
					$temp=implode('_', $temp);					
				 ?>
				 <!--这里是必须把get的bid也就是品牌的bid携带过去-->
				<a href="<?php echo U('list/index',array('gcid'=>$_GET['gcid'],'bid'=>Q('get.bid',0),'param'=>$temp))?>" <?php if($param[$n]==0){?>
                 style="color: red;"
               <?php }?> class="wanlu">不限</a>
				<?php foreach ($v as $vv){?>
				<?php 
					$temp=$param;
					$temp[$n]=$vv['gaid'];
					$temp=implode('_', $temp);
				 ?>
				<a href="<?php echo U('list/index',array('gcid'=>$_GET['gcid'],'bid'=>Q('get.bid',0),'param'=>$temp))?>" <?php if($param[$n]==$vv['gaid']){?>
                 style="color: red;"
               <?php }?> class="wanglu"><?php echo $vv['gavalue']?></a>
				<?php }?>			
			</div>
			<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		</div>
		<?php $n++; ?>
		<?php }?>	
		<div class="colorb wang gaoji">
			<div class="s">高级选项：</div>
			<div class="se">
				<a href="" class="wanglu gao">颜色</a>
				<a href="" class="wanglu gao">热点</a>
				<a href="" class="wanglu gao">大家说</a>	
				
			</div>	
			
		</div>
		
	</div>
	<!--筛选部分结束-->
	<!--右边推广商品-->
	<div class="tuiguang">
		<p class="font">推广</p>
		<ul class="show">
			<?php foreach ($goodtui as $v){?>
			<li>
				<a href="<?php echo U('Detail/index',array('gid'=>$v['gid']))?>" class="tu"><img src="<?php echo $v['listimg']?>" alt="" /></a>
				<p class="jiage"> ¥<?php echo $v['shopprice']?> </p>
				<a href="<?php echo U('Detail/index',array('gid'=>$v['gid']))?>" class="des"><?php echo $v['gname']?></a>
				<div class="coment">已有<span><?php echo $v['gsort']?></span>人浏览</div>
			</li>
			<?php }?>
					
		</ul>
		
	</div>
	<!--右面推广商品结束-->
	<!--左面商品展示页-->
	<div class="show_all">
		<div class="paixu">
			<ul class="list">
				<li class="first"><a href="">综合排序</a></li>
				<li><a href="">销量</a></li>
				<li><a href="">价格</a></li>
				<li><a href="">评论数</a></li>
				<li><a href="">新品</a></li>
			</ul>
			<form class="pai" action="" method="post">				
				<input type="text" name="" id="" class="text" value="在结果中搜索"/>
				<input type="submit" value="确定" class="sub"/>
			</form>
			<div class="jiantou">
				<p><i class="iconfont">&#xe697;</i></p>
				<p style="background: white;"><i class="iconfont">&#xe6a7;</i></p>
			</div>
			<p class="fenshu"><span style="color: #E4393C;">1</span>/<span>52</span></p>
			<p class="jianshu">共<span>		
				<?php
					if(isset($goodData))
					echo count($goodData); 
				?>				
			</span>件商品</p>
			
		</div>
		
		<div class="paixu paisong">
			<form action="" method="post">
			派送到：<input class="text" type="text" name="" id="" value="北京朝阳区三环到四环之间" />
								
			</form>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			
			<!--箭头-->
			<div class="jiantou">
				<p id="ps"><i class="iconfont">店铺</i></p>
				<p id="ps" style="background: white;"><i class="iconfont">商品</i></p>
			</div>
			
		</div>
		<div class="nei">
			<!--小块展示-->
			<?php if(isset($goodData)){?>
                
			<?php foreach ($goodData as $v){?>
			<div class="box">
				<a href="<?php echo U('Detail/index',array('gid'=>$v['gid']))?>" class="tu"><img src="<?php echo $v['listimg']?>" alt="" /></a>
				<div class="liang">
					<?php foreach ($v['gdimg'] as $vv){?>
					<p><img width="30" height="30" src="<?php echo $vv?>" alt="" /></p>
					<?php }?>
				</div>
				<p class="jiage">￥<?php echo $v['shopprice']?><span class="zeng">赠品</span></p>
				<p class="des"><a href="<?php echo U('Detail/index',array('gid'=>$v['gid']))?>"><?php echo $v['gname']?></a></p>
				<p class="renshu">已有<span style="color: #005AA0;"><?php echo $v['gsort']?></span>人浏览</p>
				<p class="dianpu">小米官方旗舰店<span>京东自营</span></p>
			</div>
			<?php }?>
			
               <?php }?>
			<!--<div class="box">
				<a href="" class="tu"><img src="Public/Home/images/bg39.jpg" alt="" /></a>
				<div class="liang">
					<p></p>
					<p></p>
				</div>
				<p class="jiage">￥3199.00<span class="zeng">赠品</span></p>
				<p class="des">三星 Galaxy A9 (SM-A9000) 魔幻金 全网通4G手机 双卡双待 跨年新品6英寸大</p>
				<p class="renshu">已有<span style="color: #005AA0;">144</span>人评价</p>
				<p class="dianpu">小米官方旗舰店<span>京东自营</span></p>
			</div>-->
			<!--小块展示结束-->
			
		</div>	
		
		
		
		
	</div>
	<!--左面商品展示页-->
	
</div>

<!--列表页结束-->
<footer>
	<div class="sixbian">
		<div class="tua">
			<img src="Public/Home/images/bg24.png" alt="" />	
			<img src="Public/Home/images/bg25.png" alt="" />
			<img src="Public/Home/images/bg26.png" alt="" />
			<img src="Public/Home/images/bg27.png" alt="" />
		</div>
	</div>
	<div class="jieshao">
		<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>	
		<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
		<div class="ditu">
			<p class="a1">京东自营覆盖区县 </p>
			<p class="a2">京东已向全国2376个区县提供自营配送服务，支持货到付款、POS机刷卡和售后上门服务。</p>
			<a class="a3" href="">查看详情 ></a>
		</div>
	</div>
	<div class="bi">
		<ul class="ul">
			<li>关于我们<span>|</span></li>
			<li>联系我们<span>|</span></li>
			<li>商家入驻<span>|</span></li>
			<li>营销中心<span>|</span></li>
			<li>手机京东<span>|</span></li>
			<li>友情链接<span>|</span></li>
			<li>销售联盟<span>|</span></li>
			<li>京东社区<span>|</span></li>
			<li>京东公益<span>|</span></li>
			<li>English<span>|</span></li>
			<li>Contact<span>|</span></li>
			<li>Us<span>|</span></li>
			<li>Site</li>			
		</ul>
		<center class="b">北京市公安局朝阳分局备案编号110105014669  |  京ICP证070359号  |  互联网药品信息服务资格证编号(京)-经营性-2014-0008  |  新出发京零 字第大120007号</center>
		<center class="b2">音像制品经营许可证苏宿批005号  |  出版物经营许可证编号新出发(苏)批字第N-012号  |  互联网出版许可证编号新出网证(京)字150号</center>
		<center class="b3">网络文化经营许可证京网文[2014]2148-348号  违法和不良信息举报电话：4006561155  Copyright © 2004-2016  京东JD.com 版权所有</center>
		<center class="b4">京东旗下网站：360TOP  拍拍网  网银在线</center>
		<center class="b5">
			<img src="Public/Home/images/bg21.png" alt="" />
			<img src="Public/Home/images/bg22.png" alt="" />
			<img src="Public/Home/images/bg23.png" alt="" />
			<img src="Public/Home/images/bg29.png" alt="" />
			<img src="Public/Home/images/bg28.png" alt="" />
		</center>
	</div>
</footer>
<body>
</body>
</html>
